fix accessibility on XCB when running as root
authorDebian Qt/KDE Maintainers <debian-qt-kde@lists.debian.org>
Sat, 28 Feb 2026 17:55:04 +0000 (20:55 +0300)
committerDmitry Shachnev <mitya57@debian.org>
Sat, 28 Feb 2026 17:55:04 +0000 (20:55 +0300)
commit7ec5e9e381f608d4deb4ad327e6d29b21782176c
treeaddce3858ec5d753d5ea224969a8d7241eb7cf41
parented06e797d19761f8f4b48878ecc68847357ba85d
fix accessibility on XCB when running as root

Origin: upstream, https://code.qt.io/cgit/qt/qtbase.git/commit/?id=db346e711c9af505
Bug: https://bugs.debian.org/1033995
Last-Update: 2023-04-15

Accessibility actually works when running applications as root, but we
would never properly connect, since the enabledChanged signal would be
emitted from the constructor in this case. So after connecting the
signal, check the value by hand to make sure not to miss the
notification.

Only applications running as root would be affected, because all other
applications would go through the asynchronous pattern of getting the
bus address from dbus instead.

Gbp-Pq: Name a11y_root.diff
src/platformsupport/linuxaccessibility/bridge.cpp